class AddContactsToDatabase < ActiveRecord::Migration
  def self.up
    create_table :contacts do |t|
      t.column "group_id", :integer
      t.column "status", :integer
      t.column "created_at", :datetime
    end
    
    create_table :contact_entries do |t|
      t.column "contact_id", :integer, :null => false
      t.column "created_by_id", :integer, :null => false
      t.column "fname", :string
      t.column "lname", :string
      t.column "title", :string
      t.column "relationship", :string
      t.column "status", :string
    end
  end

  def self.down
    drop_table :contacts
    drop_table :contact_entries
  end
end
